const state = () => ({
  // 存储 用户 当前选中的菜单栏
  chooes_item:""
});

const mutations = {
  // 初始化 NavList 数据
 setItem(state,data){
    state.chooes_item = data;
 },
}

const actions = {
  setItem({commit},data){
    commit("setItem",data);
 }
}


const getters = {
  getItem: state => {
    return state.chooes_item;
  },
}

export default{
  namespaced:true,
  state,
  actions,
  mutations,
  getters
}